package com.fitso.model.dao.hibernate;

import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import com.fitso.model.context.ContextFactory;
import com.fitso.model.dao.FoodDao;
import com.fitso.model.dao.ServingDao;
import com.fitso.model.dao.ServingDaoDB_IT;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = { "classpath:fitso-model-context.xml" })
public class HibernateServingDao_IT extends ServingDaoDB_IT {

	public FoodDao newFoodDao() {
		return (FoodDao) ContextFactory.getBean("HibernateFoodDao");
	}

	public ServingDao newServingDao() {
		return (ServingDao) ContextFactory.getBean("HibernateServingDao");
	}

	protected String[] getDataFileNames() {
		return new String[] { "src/test/resources/datasets/food_dataset.xml",
				"src/test/resources/datasets/food_journal_dataset.xml",
				"src/test/resources/datasets/food_serving_dataset.xml" };
	}
}